package com.wtwd.campus.vcom.common;

/**
 * @Author: ldaoliang
 * @DateTime: 2022/1/4 16:22
 * @Description:
 */
public class RespEntity {
    private int code;
    private String message;
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(RequestId data) {
        this.data = data;
    }

    public RespEntity(RespCode respCode) {
        this.code = respCode.getCode();
        this.message = respCode.getMsg();
    }

    public RespEntity(RespCode respCode,Object key){
        this(respCode);
        this.data = key;
    }
}
